home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
p_man
/
cat3
/
Xm
/
XmListGetMatchPos.z
/
XmListGetMatchPos
Wrap
Text File
|
1998-10-30
|
3KB
|
67 lines
XXXXmmmmLLLLiiiissssttttGGGGeeeettttMMMMaaaattttcccchhhhPPPPoooossss((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmLLLLiiiissssttttGGGGeeeettttMMMMaaaattttcccchhhhPPPPoooossss((((3333XXXX))))
NNNNAAAAMMMMEEEE
XXXXmmmmLLLLiiiissssttttGGGGeeeettttMMMMaaaattttcccchhhhPPPPoooossss - A List function that returns all
instances of an item in the list
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
#include <Xm/List.h>
BBBBoooooooolllleeeeaaaannnn XXXXmmmmLLLLiiiissssttttGGGGeeeettttMMMMaaaattttcccchhhhPPPPoooossss(
WWWWiiiiddddggggeeeetttt wwwwiiiiddddggggeeeetttt,
XXXXmmmmSSSSttttrrrriiiinnnngggg iiiitttteeeemmmm,
iiiinnnntttt ********ppppoooossssiiiittttiiiioooonnnn____lllliiiisssstttt,
iiiinnnntttt ****ppppoooossssiiiittttiiiioooonnnn____ccccoooouuuunnnntttt);
VVVVEEEERRRRSSSSIIIIOOOONNNN
This page documents Motif 2.1.
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
XXXXmmmmLLLLiiiissssttttGGGGeeeettttMMMMaaaattttcccchhhhPPPPoooossss is a Boolean function that returns an
array of positions where a specified item is found in a
List.
_w_i_d_g_e_t Specifies the ID of the List widget.
_i_t_e_m Specifies the item to search for.
_p_o_s_i_t_i_o_n__l_i_s_t
Returns an array of positions at which the item
occurs in the List. The position of the first
item in the list is 1; the position of the second
item is 2; and so on. When the return value is
True, XXXXmmmmLLLLiiiissssttttGGGGeeeettttMMMMaaaattttcccchhhhPPPPoooossss allocates memory for this
array. The caller is responsible for freeing this
memory. The caller can recover the allocated
memory by calling XXXXttttFFFFrrrreeeeeeee.
_p_o_s_i_t_i_o_n__c_o_u_n_t
Returns the number of elements in the
_p_o_s_i_t_i_o_n__l_i_s_t.
For a complete definition of List and its associated
resources, see XXXXmmmmLLLLiiiisssstttt(3).
RRRREEEETTTTUUUURRRRNNNN
Returns True if the specified item is present in the list,
and False if it is not.
RRRREEEELLLLAAAATTTTEEEEDDDD
XXXXmmmmLLLLiiiisssstttt(3).
Page 1 (printed 10/24/98)